package com.wang.study.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author mark
 * @since 2020-06-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "TbRole对象", description = "角色表")
public class TbRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "角色代号主键")
    @TableId(value = "role_code", type = IdType.AUTO)
    private String roleCode;

    @ApiModelProperty(value = "角色名称")
    private String roleName;


}
